package com.superwein.dubbo.provider.service.impl;

import com.superwein.dubbo.api.service.DemoService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(registry = {"shanghai", "beijing"}, protocol = {"dubbo", "hessian"})
public class DemoServiceImpl implements DemoService {

    public String sayHello(String name) {
        /*try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/
        return "hello " + name;
    }

}
